very first version of local shift estimation, needs evaluation