added project_distance and apply_model to node class