creating a id collection for getting data on server