histo plotting protection added