write deck code