adapted fritzing to code