changed animation curve calculation;