script that actually do the job