global changes with sensors
no OOP :'(