wrong original functions names typo fixed