add sim and rule