setting the correct mimetype