rename postType to posttype