change type repositories from object to array