adding new lerp function