try to understand controller.ls but failed...