removed uncommented assert, they make problems in mac