adding column elimination function