output and input