removed unused variable warnings