added check for no args case