modif photocontroller