refactor code to comply styleguide
remove extra semicolon at the end of each funtion