updated example controller