translate define-struct