revert moving populate func