Deleted dupes

Removed duplicate code