added delay to idle state