removed duplicate code that wasn't deleted