change assert(0) to assert(false)