fixes #20 tuple bug