dictionary/tuple mixup was causing headaches