adding a previous commit and user model