fixing animation stuff