added a filter function for var filtering

Maybe this will help with some output of user inputs
cleaned up edit
Revert "added a filter function for var filtering"

This reverts commit 39d3e44d56fddc846e17aa26ad2466755bd5c745.