created variable for template instead of messy chains of methods