i think i have finally solved the logic of text in and amongt optional head and body. woooooooooo