initial input. currently works incorrectly