update position of flash