added extension method