added delay for animation