removed dialog box, causes problems