removing commented-out keepCurrentElement