getting rid of unused variable