updates code to meet standards