remove redundant code.
add focus mode.