script to replicate results