change system() to execl()