using enumerable method as per Sean suggestion