implementing length specs