removes problematic if