make sure constants are not null