loop() function removed (method maintained)