trying to fix mime error