uPDATED c SCRIPT