rule clean up