working on scandialog