removing duplicate and unnecessary styles