fixed passing animation functions to 'add()' not working