fixed sip pseudo code