added delay to switch