curl defining routine