wrapper length check now works