fixing the case where there are two = in one line