changed animation handling