improve code, release v2.4.0