updated with script