hopefully fixed while for tuples