removed extraneous characters and comments