got template completely working