edit to use non-repeating code