using repositrories to save