added distance reference