fix if
for implementation