added doesLoop as property