implemented modify rule + cleanup