reordered pins and fixed int6