fixed errors in rules 7-9