modified dist to be 1-2