reducing the amount of cloned code