removing extraneous variable