update code to follow lint conventions