methods for parseHTML