eliminated nullpointer exception possibility