use string length for key setup