adjustment on displacement.py