added code to do prelim tests for change_bin