substStyle' reimplemented