codes for version compatiblity