fixed BGA rotation & added some rules