reformatting
improve pin setup