error passing using a return value