adding npe check for stability