added code to parse and get correct list