Struct filling method