fix omitted return value