Script Trigger update

state variable public to private