bug in tuple