functions for 3langs in 3files.working good,messy code,no interface