handle none input