we'll need another way to refactor this controller