script for analyzing results