use while loop for sfm to match roma benchmark