removed cruft

Removed the unnessesary IF part.