prepare structure