updated sin survey and parsing code