correctly create structure