fix last word is comma bug; add -p argument