modified to include part of the rules