added replicate selection, funcs & calls