cell generation working