refactor pair CSS