removed comments
moved script to a new file