added syntactic sugar for length assertion