cleaning up repository impl