updated parse csv method