Effects of axions on Nucleosynthesis in massive stars