removed a redundant hideElements call