style changes

changed code per style guideline