working on executing command function