only run getRep once