added a conditional to replicate.sh