actually working controller