moved from scripts from body to head