tweaking hit algo