code from stig