add sub method

Signed-off-by: amira <eng.amira.ahmed@yahoo.com>