explain how zoj works