zachs script for ECoG