moving script block to body for testing