init bubble struct and changed function sigs