cleaning final scripts