from Chedin lab for Rloops