added function hander for analytical solution