delay function removed