You could pass two references instead of using the one return type?