adding assert instead of if