changed the structure of pins