remove unnecessary extention