updated nullpointerexception