syswrite changed to puts