avoid having to get the length