modified afores template