Change in addClassFiles

- add condition