improving result return