fix utility logic