correction in func