Although these African Americans were free according to the law, they did not have all the rights and priviledges of Americans of European descent. Many states did not acknowledge that free African Americans were citizens, and did not permit them to vote or give evidence in court. They were discriminated against in other ways: they often held less desirable jobs, were turned away from some schools, and were restricted to living in certain neighborhoods. Freedom was never taken for granted, since free African Americans were sometimes captured and sold into enslavement. Many states demanded that free persons of color carry certificates of freedom to prove that they were not enslaved.