added STA condition because it affects the same code as event tracking