adding hasHistory