update result calculation