trying to fix npe