animating frame changes was causing problems