but slavery was abolished in 1865