updated log histry functioanlity