added code to reduce delayed actions