action function calls animate function in renderer