refactor lossy rep