pseudocode for bus data