add pins and checking