added structure

copied from tanelih