fix for different up/down distances