changed product aray to products from repo