removed extraneous variables