fix bug - can't parse first element
remove debug printing