need to add optional arg for spaces