use the right length def