What were the challenges faced by freedmen in the South due to the enactment of black codes? one scentence

Freedmen faced challenges such as limited employment opportunities, restrictions on their movement, and unequal treatment under the law due to the enactment of black codes in the South.