prepare for AB