optimization
fix smail