updated post model