avoid possible NPEs