changing color adding more lines and fixing the recursion issue