adding curve compensation