scripts for measurements