added function for further analysis after talk with Kenton