added second = in if statement