moved script to body