slight update of functions to return strings