build array b