use declare for translate and improve the name extraction from keyword