hybrid pseudo code