add loop when loaded