better to put these lines of code (line 45 to 50) into setup()