updated to new script