just replace all occurrences of "hide" with "hidden" and then remove this function entirely.