set tuple correctly