add rules by range for styling