added an easier freq fn i was writing alot