getTuple function to be extended later to support more aggregate types other than overflow instructions