lin adjustment function