Deleted duplicate code

Deleted duplicate code