changed to string and from string functions