optimization align Calculate