add code for plan by sq 2014-11-10