added integral under peaks