simplify getting of arguments using map