made changes to coding style