Question: aim to do or doing?
Answer: Your purpose for doing something is your reason for doing it; your aim is what you want to achieve. Aim can suggest that you are only trying to achieve something; purpose gives a stronger sense of achievement being certain. Aim can be somebody's aim or the aim of something.