found error with frequency thing, added fix to TODO