updated to use down or up-fluctuated templates