added checking a type to input