remove unneccessary mimetype check