refactor history type into attribute