use head request instead of get