fixed bug tuple input