hit pin logic added