code for removing fixed history records added