updating the code to suit the standards of style sheet