update the dimension method
Merge remote-tracking branch 'origin/master'