changed != None to is not None