add sub method

Signed-off-by: diyaa <tasyjean@gmail.com>