fixed issue with tuple assignment