set length on init
test length on init