initialize pin