refator cat problem and top analyzer