refactor displacement parameters handling