use a better algirthm to find the line for the signs