made an extension method