working on template and reompile