all history functions added