made nums a heap, too