added code with deprecated 1.43 for comparison