simplify rating directive