was confused about cake pattern

fixed passing of repositories.