relates.length check