first order code integration