add isPinned method