some experimental space-optimization