adjust data.dat and RULES.txt