improving squid template