change method to return a string