implemented curved lines