apply command