changed io functions names to input/output