optimized lib - add function summary