lunch break commit. adds some more logic with setting pins