changing apt_repository to only use repository var