make generic functions for activities