Updated repositories method

Made use of the parameters array