fix tuple input