avoid NPEs