fixed tuple unpacking