added newRoles as input for the put function