delete needless unless function in order index view