conversion from loc to node*