slight GC improvements
fix compiler warning