removing comments to run as script, fix according to comments