animation works, but flipping doesn't