calculate and test functions changed