animated values function changed