Ilya Chorny wrote: > thanks its *atoms->resname[i], but I still can't figure out how its > indexed. Its printing the names but not the correct ones. Search in the code for other uses of resname and see how it is addressed there. Mark