small code change in head request