creating objects wth a specified id