improved shooting frequency algo