fixes issue #6, correct values for r4 and r5