added pin controller