getting help with the delay function