completed initial wiring of all function