initial
tiny bit of type checking