improved a class html parsing