var renaming bugs
working on adding freq drawing