fix lack of return value