attempt at implementing get history