add delay correction