some fixes to ex1