removed extraneous function