controller code update