pain vs function