add 1.3 and sctrict DI

Inner functions should be listed at the top of the outer function.<br>'attrs' is defined but never used.