added endline add, move # for both up and down