added in scan method