performance util refactor