Be compatible for both 2 and 3