adjustments to get correct result