added check for keys length