add pig code