slow down because script is in the head