updated references fixed a bug with general collection