hack to fix mulitnomial type error in where_clause. permanent solution to come