refactor args2Array