made the the function to get a new id it's own file, for readability