remove unused functions in the calculate service