readded optimizated flag