made code to go left to right, now working on collapsing