add length() helper