made displacement optional in align