removed unused variable 'answer'