working code for parse pull