added delay procedre