handle null types