set up proper structure