correct type of length