moved to time based animation instead of frame based