add animation frame loop scheme