extra null check to stop crash