structure now works