raintpl loops