added sub-command method