add measure method to able to measure from a node