created rule for points