implemented tentative displacement algorithm