pinboard improved and generalized