add 0.5 for ties and config for setk