moved function fo utils and formated file
file formatting and encoding