add dependency injection and rusing proper repository