Solved tuple issue