added to calculatelocation diagram