fixing nullpointerexception again