creating structure - WARNING: codes not working right now