add to function and move animate