previous commit should be a class method