changes animate func