converting to spaces