updated delay between frames