controller example corrected