run with kwargs incorporated
updated template