translated some from 3.2