function correction.