prevent from throw NullPointer exception