structure finally working