removing "unused variable" error