adjust calculation