begin to use mg-directive