The first soundsounds logical because is planningis planning shows an action going to be performed in the future, thus Istthe first part is correct and regarding the second part to do something shows, to do something is the infinitive. OnOn the other hand on doing something, on doing something does not sound logical.