integrals added some explanation