add loop method