change passing parameter for file opening mode