debugging code - testing by rates