added integrals but they do not yet take into account x^(-1)