modified to copy current style