get the id in options if there is