edit template and testing