writing the @converter macro