fixed tuple assignment issue