changes to the model for post functions