debug/reimplement final realignment