add array get complement function