add line spec
refactaring
line bugfixed