removed unnecessary function parameters in io