added remove_extension method