updated assert