why do you specify length here? does it not work with just []?