updated populate script, added alert message