remove compared for nilclass