pin and type added