initstruct implemented