added pinmapping to sketch