update to fix error for increasing function