validation length exchanged