adjust functions structure