activity and user functions