adding wait and zombie process