You have to do what makes Imam A S happy, and leave what makes him unhappy.
Piety of Allah SWT is the most important thing you should take care of.
Always recite your prayers on time with devout.
When you do these things, Imam will be happy with you.