rewrites rewrite criteria in sba