Well optimized source codes

Well optimized source codes