fixed the input output stuff (<, >)