On realism and quantum mechanics