implemented dialog method, adjusted format