updated class using DOM parsing