added distance and pressure functions