moved script to end of body