* optimize the code