integrates pain information