update extension function