added check on command