controller: delete unnecessary code