attempting to clean up template