update with comments and deleting extraneous code