getting the lines to their proper color