Please improve grammaticallity of the given text:
I remember Kaohsiung city spent many time and money to prepare and restructure whole environment long time ago.
I remember Kaohsiung city spent a lot of time and money to prepare and restructure the whole environment a long time ago.