completed phase 2 controller base