why is this retuning a method as a string?