update interface of repository