add alignment code for layer ntuple creation