had to add to applestore function