removed currentStyle usage