creating embedded document