changed casing for PIG key words, fixed according to comments