modified addpin