adding integral to be an index