removed perfect value and added loop in template