corrected access to returned value of a function