add some method in LineController