added change-extension function