add demean script