fixed rule.imp() undefined is not a function error