adding the multi row calculation feature