added a1 and a2