fixed apatite generation