added repinning