changed the order of arguments to use with xargs