modify magnitude node in path