add function for start analyse