greatly reducing code complexity

greatly reducing code complexity by standardizing input with a minifier