library code review fix