corrected controller