added update collection functionality