replace print with write()