optimized not working state