Updated id function to a variable