finished initial wishful coding for controller