added a slider for testing granularity. super hackish