simplify make.combinations and parameter scan