changed console I/O