changed the datastructures from space separated to commma separated