patterns on input elements and removed some stuff.