added coordinate recalculation
initial commit