fixed outdated controller code