added integer conversion in tempalte