finally getting flashing animation right