added border remover and updated rectcomparator