figure out code for input