adjust to css's patterns