added: checking if ID is used