merging with pin api