moved script into body