implemented parsing problem from XML