mark "write" method as code