fixed misalligned codes