resolved a NullPointerException