the bug with the line creation is fixed but we still need to do it as a directive