added a slider for intensity