use stylesheet rule function