added some new sources and layout for tex