switch private and public and maps