properly getting all coords into the calculation