removed duplicate code that wasn't being used