script for profiling