move on for typechart. working version, but not efficient. also, need to add class like my previous project depending on the content.