unused variable removed from main