added pin setting methods