curl definition and structure