got rid of unused variable