about to add analytics
fixed bug where generations did not work correctly