added script for statistics