optimized script for languages