removed repository constructor