removed get_user_stats function