modified assert for debug