removed std.io
commenting/refactoring