minor change. preventing null pointer exception