changes added for scan & prob