added aux functions for ProDy