get the current id