removing permalink stuff