prepare structure for using with composer