rename dynamic to dp
add statistic function for lss