added extra variable to make it possible to add more lines to the onload