length function for increased coverage