added prototype length that does not use vectors