fixing controller example