parsing classes and ids