object building function for getting ready to generate schema