write architecture and any function