fix order of arguments to join