Arthritis causes joints to be painful and stiff by