fixed prev pos and sum locations