marked prepareRules as deprecated