fixed tuple error