aligned main in sample