tweak the dot to append before class, yet need a dot before parent class and child class if available