use teda lib instead of copy and paste