add method to set id