implemention of basic command