implemented getIntegral