apply corrections