move Id and Iso functions in a common util file