made edits to the pis_controller