switched result to use a string