adding an assert in open_1d + some comments