fixing stdout;
fixing bugs;