changed convert to not be null terminated