tmp
final optimizations