change from output to input