get rid of length check