Prime Minister Dr Mahathir Mohamad admits the cooperation between Umno and PAS led to BN's victory in the by-election for Semenyih.However, Mahathir stressed that the burgeoning ties between Umno and PAS would work against the latter in a general election.