merge the calculate