began rebuild animate function