the other (better?) solution with activity