removed extraneous variable