removed some unneccessary logic from storePath