begin to add execvp for function call