added switching lines up/down