added controller and log constraint