made script neater.