protect against nil