clean up code on record template IAs