trying to fix if