clean up my ugly code

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