removing extraneous function