update extension method