fix bug in integ() at 2nd element