Try define dependancy another way