initialize pins