Can't figure out how to make this dependency work