fixed with working example now that doesnt spam