PutlockerCom: using loop to avoid repeated statement