correct code type and script type