put back animate function