refined css implementation