added context to make writing rules easier