refactor for generalizing 3div to fiz