moved script to head