rewrite control method

Signed-off-by: Grarak <williye97@gmail.com>