remove if for parts query