added function for approximation