changed the input method and output location