less logic in the directive