remove redundant where clause