added variable and alert for type AB on lines 21 and 22.