set up the correct structure